﻿@{
    Yglab.Models.User u = Yglab.MyLib.MySingletonSession.Current.CurrentUser;
}

<ul class="nav pull-right">
 <li> @Html.ActionLink("Dergi Ara", "Dergi", "Ara") </li>
 <li> @Html.ActionLink("Makale Ara", "Makale", "Ara") </li>
 <li> @Html.ActionLink("Yazar Ara", "Yazar", "Ara") </li>    
@if(u == null){
    
    <li> @Html.ActionLink("Giriş", "Login", "User") </li>
    <li> @Html.ActionLink("Kayıt", "Register", "User") </li>
}
else{
    <li>@Html.ActionLink( "Kullanıcı Adı: " + u.Name , "Edit" , new{controller="Kullanici", id=u.Id } ) </li>
    <li> @Html.ActionLink("Çıkış", "Logout", "User") </li>
    <li> @Html.ActionLink("Notifs", "Notifications", "User") </li>
}


    @{
        DateTime t = new Yglab.MyLib.MyCronjob().getTime();
    }
        
    <li> @Html.ActionLink("saat: "+ t.ToString(), "Index", "Settings", null, null) </li>

</ul>
